<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{adressestiersmsgs['navigation.back']}" action="/jsf/adressestiers/listAdressesTierss.xhtml"/>
		
			<p:panel header="#{adressestiersmsgs['adressestiers.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
						<h:outputText value="#{adressestiersmsgs['adressestiers.adtadresse.title']}:*" />
							<h:outputText value="#{AdressesTiersComponent.adressestiers.adtAdresse}"/>
						<h:outputText value="#{adressestiersmsgs['adressestiers.adttiers.title']}:*" />
							<h:outputText value="#{AdressesTiersComponent.adressestiers.adtTiers}"/>
						<h:outputText value="#{adressestiersmsgs['adressestiers.adttypeadresse.title']}:*" />
							<h:outputText value="#{AdressesTiersComponent.adressestiers.adtTypeAdresse}"/>
						<h:outputText value="#{adressestiersmsgs['adressestiers.adtetataffectation.title']}:*" />
							<h:outputText value="#{AdressesTiersComponent.adressestiers.adtEtatAffectation}"/>
						<h:outputText value="#{adressestiersmsgs['adressestiers.adtfinaffectation.title']}:*" />
							<h:outputText value="#{AdressesTiersComponent.adressestiers.adtFinAffectation}"  converter="dateConverterForCalendar" />
						<h:outputText value="#{adressestiersmsgs['adressestiers.adtdatecreation.title']}:" />
							<p:calendar id="adressestiers_adtdatecreation" value="#{AdressesTiersComponent.adressestiers.adtDateCreation}" required="false"  converter="primefacesCalendarConverter" />
						<h:outputText value="#{adressestiersmsgs['adressestiers.adtdatemodification.title']}:" />
							<p:calendar id="adressestiers_adtdatemodification" value="#{AdressesTiersComponent.adressestiers.adtDateModification}" required="false"  converter="primefacesCalendarConverter" />
         			<h:panelGroup>
         				<p:commandButton image="save" ajax="false" style="margin-right:20px;" value="#{adressestiersmsgs['navigation.save']}" action="#{AdressesTiersComponent.saveAdressesTiers(AdressesTiersComponent.adressestiers)}"/>
         			</h:panelGroup>
				</h:panelGrid>
			</p:panel>

		</h:form>
	</ui:define>
</ui:composition>